check if user has role twig

43

check twig if user has role -

{% if is_granted('ROLE_ADMIN') %}
    <a href="...">Delete</a>
{% endif %}

Comments

Submit
0 Comments